#include <header.h>

int main(){

    FILE * file = fopen("./1.txt", "r+");

    FILE * file2 = fopen("./2.txt", "w+");

    char buf[4096] = {0};

    size_t ret = fread(buf, 1, 4096, file );
    printf("buf: %s \n", buf);
    
    fwrite(buf, 1, ret, file2);
    fflush(file2);
    
    fclose(file);
    fclose(file2);
    return 0;
}

